package com.bw.fxzk.room

import android.app.Application
import androidx.room.Room

class AppDBUtlis {
    companion object{
        private lateinit var appDataBase: AppDataBase
        fun init(application: Application){
            appDataBase= Room.databaseBuilder(application,AppDataBase::class.java,"score.db")
                .allowMainThreadQueries()
                .build()
        }
        fun getDB()= appDataBase
    }
}